package com.lky.service;

import com.lky.dto.UserExecution;
import com.lky.entity.User;

import java.util.List;

/**
 * Created by Lenovo on 2018/1/16.
 */
public interface UserService {
    int addUser(User user);
    List<User> queryUser();
    List<User> queryUserByName(String username);

    User getByUserId(Integer userId);
    int updateUser(User user);

    int delByUserId(Integer userId);

    /**
     *
     * @param pageIndex 从1开始，表示第一条记录
     * @param pageSize 每页显示的数量
     * @return 返回UserExecution对象
     */
    UserExecution getUserList(int pageIndex, int pageSize);
}
